<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-user-edit">
        <input id="userId" name="userId" th:value="${user.userId}" type="hidden">

        <div class="form-group">
            <label class="col-sm-3 control-label">代理用户ID：</label>
            <div class="col-sm-8">
                <input id="id" disabled="disabled" class="form-control" type="text" th:value="${user.plUserId}">
                <input id="id" name="plUserId" style="display: none" class="form-control" type="text"
                       th:value="${user.plUserId}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">代理等级：</label>
            <div class="col-sm-8">
                <select class="form-control input-s-sm inline" id="kickbackSelect" onchange="checkStatus()"
                        th:with="type=${@proxyLevelService.selectProxyLevel()}">
                    <option value="">请选择</option>
                    <option th:field="*{user.kickback}" th:each="e : ${type}" th:text="${e['plName']}"
                            th:value="${e['plEffective']}"></option>
                </select>
                <input style="display: none" id="kickback" th:value="${user.kickback}" name="kickback"
                       class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">登录账号：</label>
            <div class="col-sm-8">
                <input id="loginName" disabled="disabled" name="loginName" th:value="${user.loginName}"
                       class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">用户昵称：</label>
            <div class="col-sm-8">
                <input id="userName" name="userName" th:value="${user.userName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">手机号码：</label>
            <div class="col-sm-8">
                <input id="phonenumber" name="phonenumber" th:value="${user.phonenumber}" class="form-control"
                       type="text">
            </div>
        </div>
        <div class="form-group">
            <div class="form-control-static col-sm-offset-9">
                <button type="submit" class="btn btn-primary">提交</button>
                <button th:onclick="'javascript:layer_close()'" class="btn btn-danger" type="button">关闭</button>
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script src="/reasahi/manage/userAgent/edit.js" th:src="@{/reasahi/manage/userAgent/edit.js}">
</script>
</body>
</html>
